import { configureStore } from '@reduxjs/toolkit'

// 导入子模块 reducer
import counterReducer from './modules/counterStore'
import channelReducer from './modules/channelStore'

const store = configureStore({
	// 注册子模块 reducer
	reducer: {
		counter: counterReducer,
		channel: channelReducer,
	},
})

export default store
